import com.google.gson.Gson;
import com.spring.boot.entity.Users;
import com.spring.boot.entity.server.ServerEntity;
import com.spring.boot.tool.Encode;
import org.junit.Test;
import sun.security.provider.MD5;

/**
 * @author 刘骄阳
 * 2021-07-14 14:10
 */
public class Demo {

    static Gson gson = new Gson();

    @Test
    public void demo() {
        String a = "fzKq[DJ7NTxjeYOmdn6icXVjPjKzc3:1Jjxjdn:t[TJ7JmKQUFWg677i66DH6[HZJjxjZYW1bH:zbYS6JkqcJkFjMDJzJjxjNzJtJkRjMDJ2Jm1tJnyid4SNc3eqcmSqcXVjPjKLeXxhNUdtJEJxNkFhOEpxOkpyOzCRUTK:";
        String s = Encode.base64DecoderBySalt(a, 0);
        System.out.println(s);
        Users users = ServerEntity.gson.fromJson(s, Users.class);
    }
}
